/*
 * ForSaleBO.java
 *
 * Created on March 30, 2007, 8:42 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.jjenkins.data;

/**
 * forSaleBO
 * @author Rick
 */
public class ForSaleBO extends PhysicalBO{
    private int newOrUsed;
    private int sold;
    
    
    /** Creates a new instance of ForSaleBO */
    public ForSaleBO() {
    }

    /**
     * getter
     * @return 0 if new, 1 if used
     */
    public int getNewOrUsed() {
        return newOrUsed;
    }

    /**
     * setter
     * @param newOrUsed set to 0 if new, 1 if used
     */
    public void setNewOrUsed(int newOrUsed) {
        this.newOrUsed = newOrUsed;
        setDirty(true);
    }

    /**
     * returns sold status
     * @return gets the sold status. use 0 if unsold, 1 if already sold 
     */
    public int getSold() {
        return sold;
    }

    /**
     * returns teh sold status
     * @param sold sets the sold status. use 0 if unsold, 1 if already sold 
     */
    public void setSold(int sold) {
        this.sold = sold;
        setDirty(true);
    }

    
}
